<template>
    <div class="UserBoxBorder">
        
        <div class="UserBox">
            <div class="pic">
                <img :src="picpath" class="img_class">
                <div class="text_class_title_userName">
                    <span>Harry</span><br>
                    <span>正确&nbsp;:&nbsp;</span><span v-text="count"></span><span>题</span>
                </div>
                
            </div>
        </div>
        
    </div>
</template>

<script>
export default {
    props:['count'],
    computed:{
        picpath(){
            return this.$store.state.UserPicPath;
        }
    }
}
</script>

<style scoped>
.UserBoxBorder{
    width: 100%;
    height: 13vh;
    /* border: 1px solid red; */
    background-color: unset;
    padding-top: 6vh;
}
.UserBox{
    background-color: #14071d;
    height: 100%;
    /* width: 100%; */
    margin: 0px 5vw;
    /* flex: 1; */
    display: flex;
    flex-direction: row;
    justify-content: space-around ;
    align-content: center;


    position: relative;
    bottom: 0px;

    background-color: rgba(26, 26, 26, 0.5)
}
.pic{
    /* border:1px solid red; */
    position: relative;
    top: -5vh;

    

}
.img_class{
    width: 15vw;
    border-radius: 50%;
    margin: 0px 20px;
    
}
.text_class_title_userName{
    text-align: center;
    line-height: 1.5;
    color: white;
}
</style>
